#!/bin/bash

cd /data/www/inetmanage/export;

delTar() {
	#$1 目录
	cd $1
	rm $2 -rf
}
#删除book
bookdir=`date -d "7 days ago" +%Y-%m-%d`
traydir=`date -d "7 days ago" +%Y-%m-%d`
installdir=`date -d "7 days ago" +%Y-%m-%d`
deskdir=`date -d "7 days ago" +%Y-%m-%d`
urlfile=`date -d "7 days ago" +%Y-%m-%d`

delTar 'bookmark' $bookdir
delTar 'trayicon' $traydir
delTar 'deskicon' $deskdir
delTar 'install' $installdir
delTar 'url' "$urlfile.tar.gz"
exit;

